package com.kumz.SpringMVC.service;

import com.kumz.SpringMVC.pojo.User;

import java.util.List;
import java.util.Map;

/**
 * Author: Yunz
 * E-mail: 1603754314@qq.com
 * Date: 2022/12/12
 */
public interface UserService{
    //通过User的用户账号和用户密码查询用户信息
    User login(User user);

    int addUser(User user);

    int deleteUserByName(int id);

    int updateUser(User user);

    User selectUserById(int id);

    List<User> selectAllUser();

    User selectUserByName(String username);

}
